package com.bootdo.company.service.impl;

import com.bootdo.company.domain.CompanyPublishPostDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.company.dao.CompanyDao;
import com.bootdo.company.domain.CompanyDO;
import com.bootdo.company.service.CompanyService;


@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyDao companyDao;

    @Override
    public CompanyDO get(Long id) {
        return companyDao.get(id);
    }

    @Override
    public List<CompanyDO> list(Map<String, Object> map) {
        return companyDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return companyDao.count(map);
    }

    @Override
    public int save(CompanyDO company) {
        return companyDao.save(company);
    }


    @Override
    public int update(CompanyDO company) {
        return companyDao.update(company);
    }

    @Override
    public int remove(Long id) {
        return companyDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return companyDao.batchRemove(ids);
    }

    @Override
    public CompanyDO getByPostId(Long postId) {
        return companyDao.getByPostId(postId);
    }

    @Override
    public List<CompanyPublishPostDO> companyPostLists() {
        return companyDao.companyPostLists();
    }

    @Override
    public Map<String, Object> getById(Long id) {
        return companyDao.getById(id);
    }

    @Override
    public CompanyDO getByUserId(Long userId) {
        return companyDao.getByUserId(userId);
    }

}
